package lab02.test14;

public class Test14 {
    public static void main(String[] args) {
        Rectangle a=new Rectangle();
        a.side1=5;
        a.side2=4;
        System.out.print("长方形的面积是：");
        a.getArea();
        System.out.println(a.area);


        Circle b=new Circle();
        b.radius=6;
        b.getArea();
        System.out.print("圆的面积是：");
        System.out.println((int)b.area);
    }
}
